package com.yunlan.materia.service;

import com.yunlan.materia.entity.DoctorInfo;
import com.yunlan.materia.request.DeleteDisableDoctorRequest;
import com.yunlan.materia.request.DoctorDetailsRequest;
import com.yunlan.materia.request.DoctorInfoRequest;
import com.yunlan.materia.response.DoctorInfoResponse;

import java.util.List;
import java.util.Map;

/**
 * @author 罗显
 * @date 2025/9/18
 * @ApiNote
 */
public interface DoctorInfoService {

    /**
     * 添加医生
     * @param request
     * @return
     */
    DoctorInfoResponse createDoctorDoc(DoctorInfoRequest request);

    /**
     * 编辑详情
     * @param request
     * @return
     */
    Map<String,Object> updateDoctor(DoctorDetailsRequest request);

    /**
     * 删除或禁用
     * @return
     */
    DoctorInfoResponse deleteDisableDoctor(DeleteDisableDoctorRequest request);

    /**
     * 模糊匹配医生的信息
     * @param request
     * @return
     */
    List<DoctorInfo> queryLikeDoctor(DoctorDetailsRequest request);

    /**
     * 精确匹配医生的详细信息
     * @param request
     * @return
     */
    Map<String,Object> queryDoctor(DoctorDetailsRequest request);

    /**
     * 根据id获取医生信息
     * @param id
     * @return
     */
    DoctorInfo queryById(Long id);

    /**
     * 根据手机号获取医生信息
     * @param mobile
     * @return
     */
    DoctorInfo queryMobile(String mobile);

    /**
     * 查询所有的医生
     * @return
     */
    List<DoctorInfoResponse> selectList();

}
